var e = require("../@babel/runtime/helpers/interopRequireDefault"), t = require("../utils/network.js"), i = e(require("../utils/util.js"));

module.exports.login = function(e, o, u) {
    var l = i.default.getLoginHost() + "oauth/login";
    l = i.default.formatUrl(l), console.log("config url:" + l), (0, t.post)(l, e).then(function(e) {
        null != e && 0 != e.length ? o(e) : u();
    }).catch(function(e) {
        wx.hideLoading(), u();
    });
};